package com.jiantong.work.service;

import com.jiantong.work.model.SeedPurchaseRecord;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 * Created by maowenjie on 2017/4/18.
 */
public interface SeedPurchaseRecordWriteService {
    /**
     * 新建采购中心-引种记录单据
     * @param seedPurchaseRecord 防疫中心--无害化 单据
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Response<Map<String , Object>> createSeedPurchaseRecord(SeedPurchaseRecord seedPurchaseRecord, Integer toStatus);

    /**
     * 更新采购中心-引种记录单据
     * @param seedPurchaseRecord 采购中心-引种记录单据
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Response<Map<String , Object>> updateSeedPurchaseRecord(SeedPurchaseRecord seedPurchaseRecord,Integer toStatus);

    Boolean update(SeedPurchaseRecord seedPurchaseRecord);
}
